package com.ruoyi.rocky.domain;

import com.ruoyi.rocky.enums.OrderStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;


@Data
@Builder
public class PcOrderMaster {

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    /**
     * 状态
     */
    @ApiModelProperty(value = "订单状态  daiZhiFu=待支付 daiFa=待发货 peiSong=配送中 wanCheng=已完成 quXiao=取消订单")
    private String status;

    private String statusX;

    public String getStatusX() {
        if (this.status == null) {
            return null;
        } else {
            return OrderStatus.findByCode(Integer.valueOf(this.status)).getDesc();
        }
    }
}
